﻿using System.Windows.Forms;


namespace xfsale.lib
{
    public class ValueTextPair
    {
        private string _value;
        private string _text;

        public string Value
        {
            get { return this._value; }
            set { this._value = value; }
        }

        public string Text
        {
            get { return this._text; }
            set { this._text = value; }
        }
    }

    public static class SysMessage
    {
        public static void Info(string msg, params object[] args)
        {
            MessageBox.Show(string.Format(msg, args), "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public static void Error(string msg, params object[] args)
        {
            MessageBox.Show(string.Format(msg, args), "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static void Warn(string msg, params object[] args)
        {
            MessageBox.Show(string.Format(msg, args), "系统警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
    }
}
